﻿app.factory('groupRoleFactory', function ($http) {
    var factory = {};
    
    factory.getRoleByGroup= function (id) {
        return $http.get(getGroupRolesByGroupApiAddress + id);
    };
    factory.gets = function () {
        return $http.get(getGroupRolesApiAddress);
    };
    factory.postGroupRole = function(data) {
        return $http.post(postGroupRolesApiAddress, data);
    };
    factory.delGroupRole = function (data) {
        return $http.post(delGroupRolesApiAddress+ data);
    };
    return factory;
});